package com.zr.domain.sp.controller.migration;

import com.zr.domain.sp.tool.migration.service.MigrationDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DataMigrationController {


    @Autowired
    private MigrationDataService migrationDataService;


    @GetMapping(value = "start")
    public String start() {
        migrationDataService.migrateData();
        return "ok";
    }

}
